package com.vlong.town.app;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 村镇系统管理后台App启动类
 * @author Assassin
 */
@SpringBootApplication
@EnableAutoConfiguration
@Configuration
@ServletComponentScan(basePackages = {"com.vlong.town"})
@ComponentScan(basePackages = {"com.vlong.town"})
@MapperScan(basePackages = {"com.vlong.town.mapper"})
@PropertySource(value = "classpath:application.yml", ignoreResourceNotFound = true)
public class TownWebApp  {
    public static void main(String[] args) {
        SpringApplication townWebApp = new SpringApplication(TownWebApp.class);
        townWebApp.setBannerMode(Banner.Mode.OFF);
        townWebApp.run(args);
    }
}
